package com.vehicle.service.imp;

import com.vehicle.mapper.DeptMapper;
import com.vehicle.pojo.Dept;
import com.vehicle.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImp implements DeptService {
    @Autowired
    private DeptMapper deptMapper;

    @Override
    public Dept findDeptByDid(Integer deptid) {
        return deptMapper.selectDeptByDid(deptid);
    }

    @Override
    public List<Dept> findAllDept() {
        return deptMapper.selectAllDept();
    }
}
